import 'package:merchants/services/base-service.dart';

class PermissionService extends BaseService {
  PermissionService({required super.ref});
 
  Future<List<Map<String,dynamic>>> fetchPermissions() async {
    final resp = await get<Map<String,dynamic>>('/permissions', parser: (j)=>j);
    return (resp['data'] as List).cast<Map<String,dynamic>>();
  }
} 